package com.bw.lib_common

import android.content.Context
import android.util.TypedValue
import com.bw.lib_common.base.BaseApplication

/**
 * @author zhy
 * @date 2025-09-18 18:40
 * @description
 */
fun getAttrValue(context: Context, attrId: Int): Int {
    val typedValue = TypedValue()
    context.theme.resolveAttribute(attrId, typedValue, true)
    return typedValue.resourceId
}

val appContext: Context
    get() = BaseApplication.instance